package com.zjitc.model;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 14:44
 * @description:
 */
public class User {
  private Integer uid;
  private String username;
  private String password;
  private String name;
  private String email;

  @Override
  public String toString() {
    return "User{" +
        "uid=" + uid +
        ", username='" + username + '\'' +
        ", password='" + password + '\'' +
        ", name='" + name + '\'' +
        ", email='" + email + '\'' +
        ", phone='" + phone + '\'' +
        ", addr='" + addr + '\'' +
        ", state=" + state +
        ", code='" + code + '\'' +
        ", evaluateList=" + evaluateList +
        ", cartItemList=" + cartItemList +
        '}';
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getAddr() {
    return addr;
  }

  public void setAddr(String addr) {
    this.addr = addr;
  }

  public Integer getState() {
    return state;
  }

  public void setState(Integer state) {
    this.state = state;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public List<Evaluate> getEvaluateList() {
    return evaluateList;
  }

  public void setEvaluateList(List<Evaluate> evaluateList) {
    this.evaluateList = evaluateList;
  }

  public List<CartItem> getCartItemList() {
    return cartItemList;
  }

  public void setCartItemList(List<CartItem> cartItemList) {
    this.cartItemList = cartItemList;
  }

  private String phone;
  private String addr;
  private Integer state;
  private String code;
  private List<Evaluate> evaluateList;

  public User(Integer uid, String username, String password, String name, String email,
      String phone, String addr, Integer state, String code,
      List<Evaluate> evaluateList, List<CartItem> cartItemList) {
    this.uid = uid;
    this.username = username;
    this.password = password;
    this.name = name;
    this.email = email;
    this.phone = phone;
    this.addr = addr;
    this.state = state;
    this.code = code;
    this.evaluateList = evaluateList;
    this.cartItemList = cartItemList;
  }

  public User() {
  }

  private List<CartItem> cartItemList;

}
